package main

import (
	"bytes"
	"encoding/binary"
	"encoding/json"
	"fmt"
)

type ceshi struct {
	a int8
}

func main() {
	req := new(ceshi)
	buf := bytes.NewBuffer([]byte{})
	binary.Write(buf, binary.BigEndian, true)
	fmt.Println(buf.Bytes())
	fmt.Println(len(buf.Bytes()))
	fmt.Println(req)

	orgNames := []string{"baas2", "baas3"}
	byte, err := json.Marshal(orgNames)
	if err != nil {
		fmt.Println(err)
	}
	var orgNames2 []string
	err = json.Unmarshal(byte, &orgNames2)
	if err != nil {
		fmt.Println(err)
	}

	fmt.Println("orgNames2: ", orgNames2)
	return
}